{include file="common_top.html"}
{include file="common_head.html"}
{include file="common_center.html"}
<div class="table_detail">
	<h2>用户信息</h2>
	<form action="/index.php?a=user&m=edit&t=ajax" method="POST" onsubmit="return $.fn.ajaxForm(this);">
		<input type="hidden" name="id" value="{$id}" />
		<table class="table_detail">
			<tbody align="left" valign="top">
				{if $id > 0}<tr><th width="120px">编号</th><td>{$object.id}</td></tr>{/if}
				<tr><th>账号</th><td><input type="text" name="account" value="{if $id > 0}{$object.account}{/if}" /></td></tr>
				<tr><th>密码</th><td><input type="password" name="password" /></td></tr>
				<tr><th>权限</th><td>
					<div class="checkboxlist">
						{foreach from=$power_list key=k item=v}
							<input type="checkbox" name="power[]" id="{$k}" value="{$k}" {if $id && $k|in_array:$object.power}checked="checked"{/if} /><label for="{$k}">{$v.NAME}</label>
						{/foreach}
					</div>
				</td></tr>
				<tr><th>通道</th><td>
					<div class="checkboxlist">
						{foreach from=$channel_list key=k item=v}
							<input type="checkbox" name="channel[]" id="{$k}" value="{$k}" {if $id && $k|in_array:$object.channel}checked="checked"{/if} /><label for="{$k}">{$v}</label>
						{/foreach}
					</div>
				</td></tr>
				{if $id > 0}<tr><th>最后登录时间</th><td>{$object.last_login|date_format:"%Y-%m-%d %H:%M:%S"}</td></tr>{/if}
				<tr><th>状态</th><td>
					<div class="radiolist">
						{foreach from=$is_disable_list item=v key=k}
							<input type="radio" id="{$v}{$k}" value="{$k}" name="is_disable" {if $id && $object.is_disable == $k}checked="checked"{/if} /><label for="{$v}{$k}">{$v}</label>
						{/foreach}
					</div>
				</td></tr>
				<tr><th>单任务上线</th><td><input type="text" name="tasksingle_limit_day" value="{if $id > 0}{$object.tasksingle_limit_day}{/if}" /> 条/天 (0则不限)</td></tr>
				<tr><td>&nbsp;</td><td><input type="submit" class="btn" value="保存" /></td></tr>
			</tbody>
		</table>
	</form>
</div>
{include file="common_bottom.html"}
